POV-Ray : Newsgroups : povray.general : Specs for df3- files : Re: Specs for df3- files Server Time
30 Jul 2024 22:24:12 EDT (-0400)
  Re: Specs for df3- files  
From: minzi0815
Date: 9 May 2008 08:55:00
Message: <web.482448d48637a0d8c32955910@news.povray.org>
O.k., let me try to reexplain:

The first three bytes define a box and represent the amount of values.
So the numbers 10 10 and 10 (decimal) would define 1000 values. If the values
are given in 8, 16 or 32 bit is defined by the size of the df3-file ( -6 Bytes,
of course )

The values, that follow up are given the the following order:

0 0 0
1 0 0
2 0 0
..
..
10 0 0
0 1 0
1 1 0
....

Is that correct, so far ?

"Chris B" <nom### [at] nomailcom> wrote:
> "minzi0815" <mar### [at] eumetsatint> wrote in message
> news:web.4822a7bb8637a0d8c32955910@news.povray.org...
> > Warp <war### [at] tagpovrayorg> wrote:
> >> minzi0815 <mar### [at] eumetsatint> wrote:
> >> > i am looking for a detailed specification of df3 - files in the web for
> >> > a few
> >> > days now - without success yet. Can someone give me a hint ? Thank you
> >> > in
> >> > advance !
> >>
> >>   Did you try the official documentation?
> >>
> >> http://povray.org/documentation/view/3.6.1/374/
> >>
> >> --
> >>                                                           - Warp
> > I did, but this is not a detailed spec really ...
> >
>
> Hi Marcus,
>
> It seems to me to be almost complete. It doesn't seem to indicate the
> sequencing of the data block, so I'd assume that the first block of data
> would be used for the first row of values in X etc.  If my assumption is
> correct then (in Hex):
>
> 0002 0003 0004 0F A5 ... followed by another 22 bytes of data, would give
> you a 2x3x4 8-bit media density pattern with the first value '0F' (15)
> being the density at <0,0,0> and the second value of A5 (165) being the
> density at <1,0,0>, the third data value would be used for <0,0.5,0> etc.
> until it fills in a 2x3x4 block from <0,0,0> to <1,1,1>. If you wanted a
> 16-bit file you'd have 2 bytes per voxel, so you'd need another 46 bytes of
> data.
>
> Is this any help?
> Otherwise could you add a few words about what you're trying to do or where
> you need additional detail?
>
> Regards,
> Chris B.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.